package com.validacion.direcciones.bean;

import java.util.Set;

import com.google.common.collect.ImmutableSet;

public class DestinoBean {

	private Long id;
	private Integer idUnico;
	private ImmutableSet<String> textos;
	
	//public DestinoBean() { }

	public DestinoBean(Long id, Integer idUnic, Set<String> textos) {
		this.id = id;
		this.idUnico = idUnic;
		this.textos = ImmutableSet.<String>builder()
		           .addAll(textos).build();
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public ImmutableSet<String> getTextos() {
		return textos;
	}

	public void setTextos(ImmutableSet<String> textos) {
		this.textos = textos;
	}

	public Integer getIdUnico() {
		return idUnico;
	}

	public void setIdUnico(Integer idUnico) {
		this.idUnico = idUnico;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		result = prime * result + ((idUnico == null) ? 0 : idUnico.hashCode());
		result = prime * result + ((textos == null) ? 0 : textos.hashCode());
		return result;
	}

	@Override
	public String toString() {
		return "DestinoBean [id=" + id + ", idUnico=" + idUnico + ", textos="+ textos + "]";
	}

}
